package com.wondertek.service.dto.sys.res;


import com.wondertek.service.entity.sys.SysMenuPo;
import com.wondertek.service.entity.sys.SysRolePo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * @author xqs
 */
@Data
public class SysLoginRes {

    private String accessToken;

    @Schema(name = "wxOpenid", description = "微信openid")
    private String wxOpenid;

    @Schema(name = "username", description = "用户名")
    private String username;

    @Schema(name = "id", description = "用户id")
    private String id;

    @Schema(name = "avatar", description = "用户头像地址")
    private String avatar;

    @Schema(name = "avatarUrl", description = "用户头像地址")
    private String avatarUrl;

    @Schema(name = "mobile", description = "手机号")
    private String mobile;

    @Schema(name = "email", description = "邮箱")
    private String email;

    @Schema(name = "nickname", description = "用户昵称")
    private String nickname;

    @Schema(name = "sysMenuPos", description = "拥有菜单")
    private List<SysMenuPo> sysMenuPos;

    @Schema(name = "sysRolePos", description = "拥有角色")
    private List<SysRolePo> sysRolePos;

}
